package com.seal.tsms.exam.entity;

import com.seal.tsms.base.entity.IdEntity;

import javax.persistence.*;

/**
 * Created by 爱猫的鱼 on 2016/6/3.
 */
@Entity
@Table(name = "tb_exam")
public class Exam extends IdEntity {
    private String text;
    private String option;
    private String trueAnswer;
    private String analysis;
    private Teacher teacher;
    private ExaminationClassify examinationClassify;

    @ManyToOne
    @JoinColumn(name = "Classify_id")
    public ExaminationClassify getExaminationClassify() {
        return examinationClassify;
    }

    public void setExaminationClassify(ExaminationClassify examinationClassify) {
        this.examinationClassify = examinationClassify;
    }

    @Column(name="exam_text")
    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Column(name = "exam_option")
    public String getOption() {
        return option;
    }

    public void setOption(String option) {
        this.option = option;
    }

    public String getTrueAnswer() {
        return trueAnswer;
    }

    public void setTrueAnswer(String trueAnswer) {
        this.trueAnswer = trueAnswer;
    }

    public String getAnalysis() {
        return analysis;
    }

    public void setAnalysis(String analysis) {
        this.analysis = analysis;
    }

    @ManyToOne
    @JoinColumn(name = "teacher_id")
    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }
}
